﻿<Window x:Class="WSManager.Wpf.Dialogs.NewCategory"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="New category" Height="300" Width="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Row="0" Grid.Column="0">Name:</TextBlock>
        <TextBox Grid.Row="0" Grid.Column="1" x:Name="nameTb"></TextBox>
        <TextBlock Grid.Row="0" Grid.Column="2" x:Name="nameValidation" Style="{StaticResource ValidationStar}"/>
        <TextBlock Grid.Row="1" Grid.Column="0">Description:</TextBlock>
        <TextBox Grid.Row="1" Grid.Column="1" x:Name="descriptionTb" MaxLines="10000"></TextBox>
        <TextBlock Grid.Row="1" Grid.Column="2" x:Name="descriptionValidation" Style="{StaticResource ValidationStar}"/>
        <Button Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" Padding="5,2" Click="Button_Click">Create</Button>
    </Grid>
</Window>
